//
//  LYYHotColumnCollectionViewCell.m
//  Icar
//
//  Created by dllo on 15/10/19.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "LYYHotColumnCollectionViewCell.h"
#import "BaseHeader.h"
@implementation LYYHotColumnCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        self.forumNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, WIDTH(100), HEIGHT(40))];
        [self.forumNameLabel setTextAlignment:NSTextAlignmentCenter];
        [self.contentView addSubview:self.forumNameLabel];
        if (SCREEN_HEIGHT == 736) {
            [self.forumNameLabel setFont:[UIFont systemFontOfSize:15.]];
        }else if (SCREEN_HEIGHT == 667){
            [self.forumNameLabel setFont:[UIFont systemFontOfSize:13.]];
        }else if (SCREEN_HEIGHT == 568){
            [self.forumNameLabel setFont:[UIFont systemFontOfSize:11.]];
        }else if (SCREEN_HEIGHT == 480){
            [self.forumNameLabel setFont:[UIFont systemFontOfSize:9.]];
        }
        [self.forumNameLabel setBackgroundColor:[UIColor whiteColor]];
    }
    return self;
}

- (void)getModel:(LYYHotColumnModel *)model{
    [self.forumNameLabel setText:model.forumName];
}

@end
